package chkui.springcore.example.hybrid.beanmanipulation.bean;

public class Vehicle {
	private String name;
	private String manufacturer;
	private Person person;
	private Tyre tyre;

	public Vehicle() {
	}
	
	public Vehicle(Person person) {
		this.person = person;
	}

	public String getName() {
		return name;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public Person getPerson() {
		return person;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public void setPerson(Person person) {
		this.person = person;
	}

	public Tyre getTyre() {
		return tyre;
	}

	public void setTyre(Tyre tyre) {
		this.tyre = tyre;
	}

	@Override
	public String toString() {
		return "Vehicle [name=" + name + ", manufacturer=" + manufacturer + ", person=" + person + ", tyre=" + tyre
				+ "]";
	}
}
